package com.justnow.offer;

import java.util.Scanner;

/**
 * @author justnow
 * Created on 2020-09-13
 * Description
 */
public class Didi01 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        scanner.nextLine();
        String str = scanner.nextLine();
        StringBuilder stringBuilder = new StringBuilder();
        int length = str.length();
        int split = 0;
        while (split <= length) {
            int left = split;
            int right = split + n;
            if (right > length)
                right = length;
            String substring = str.substring(left, right);
            stringBuilder.append(new StringBuilder(substring
            ).reverse().toString());
            split += n;
        }
        System.out.println(stringBuilder.toString());
    }
}
